Optimal. Leaf size=42 \[ \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )-\frac{\sqrt{a+b x^2}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0116222, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {277, 217, 206} \[ \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )-\frac{\sqrt{a+b x^2}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 277
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{\sqrt{a+b x^2}}{x^2} \, dx &=-\frac{\sqrt{a+b x^2}}{x}+b \int \frac{1}{\sqrt{a+b x^2}} \, dx\\ &=-\frac{\sqrt{a+b x^2}}{x}+b \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )\\ &=-\frac{\sqrt{a+b x^2}}{x}+\sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0682273, size = 63, normalized size = 1.5 \[ -\frac{-\sqrt{a} \sqrt{b} x \sqrt{\frac{b x^2}{a}+1} \sinh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )+a+b x^2}{x \sqrt{a+b x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 54, normalized size = 1.3 \begin{align*} -{\frac{1}{ax} \left ( b{x}^{2}+a \right ) ^{{\frac{3}{2}}}}+{\frac{bx}{a}\sqrt{b{x}^{2}+a}}+\sqrt{b}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.56335, size = 217, normalized size = 5.17 \begin{align*} \left [\frac{\sqrt{b} x \log \left (-2 \, b x^{2} - 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) - 2 \, \sqrt{b x^{2} + a}}{2 \, x}, -\frac{\sqrt{-b} x \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) + \sqrt{b x^{2} + a}}{x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.37001, size = 56, normalized size = 1.33 \begin{align*} - \frac{\sqrt{a}}{x \sqrt{1 + \frac{b x^{2}}{a}}} + \sqrt{b} \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )} - \frac{b x}{\sqrt{a} \sqrt{1 + \frac{b x^{2}}{a}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 2.30917, size = 77, normalized size = 1.83 \begin{align*} -\frac{1}{2} \, \sqrt{b} \log \left ({\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2}\right ) + \frac{2 \, a \sqrt{b}}{{\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2} - a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]